From f69ca010b80703389fffe75fc6dca907e53df74d Mon Sep 17 00:00:00 2001 From: diogo464 Date: Mon, 11 Aug 2025 13:40:27 +0100 Subject: basic file upload --- frontend/app/drive/[...path]/page.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'frontend/app/drive/[...path]') diff --git a/frontend/app/drive/[...path]/page.tsx b/frontend/app/drive/[...path]/page.tsx index 75a1bb1..60c2cca 100644 --- a/frontend/app/drive/[...path]/page.tsx +++ b/frontend/app/drive/[...path]/page.tsx @@ -2,7 +2,8 @@ import { Drive_ls, Drive_basename, Drive_parent } from "@/lib/drive" import { formatSize } from "@/lib/utils" import Link from "next/link" import { cookies } from 'next/headers'; -import { Auth_get_user } from "@/lib/auth"; +import { Auth_get_user, Auth_user_can_upload } from "@/lib/auth"; +import FileUpload from "@/components/FileUpload" interface DrivePageProps { params: Promise<{ @@ -130,6 +131,13 @@ export default async function DrivePage({ params }: DrivePageProps) { + + {/* File Upload Component */} + {Auth_user_can_upload(user) && ( + + )} ) -- cgit